package vo

type PageVO struct {
	Total uint64      `json:"total"`
	Page  uint64      `json:"page"`
	Data  interface{} `json:"data"`
	Size  uint64      `json:"size"`
}

func PageResult(total uint64, page uint64, size uint64, data interface{}) PageVO {
	var pageVO PageVO
	pageVO.Data = data
	pageVO.Total = total
	pageVO.Size = size
	pageVO.Page = page
	return pageVO
}
